package com.ruoyi.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 安全常识文章对象 knowledge_article
 * 
 * @author ruoyi
 * @date 2020-10-07
 */
public class KnowledgeArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Long id;

    /** 隶属目录标识 */
    @Excel(name = "隶属目录标识")
    private Long catalogId;

    /** 目录树名称 */
    @Excel(name = "目录树名称")
    private String catalogTreeName;

    /** 目录树标识 */
    @Excel(name = "目录树标识")
    private String catalogTreeId;

    /** 创建时间  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDt;

    /** 标题 */
    @Excel(name = "标题")
    private String name;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 阅读数 */
    @Excel(name = "阅读数")
    private Long readCount;

    /** 同级排序 */
    @Excel(name = "同级排序")
    private Long sequence;

    /**
     * 通知封面
     */
    private String coverImg;

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCatalogId(Long catalogId) 
    {
        this.catalogId = catalogId;
    }

    public Long getCatalogId() 
    {
        return catalogId;
    }
    public void setCatalogTreeName(String catalogTreeName) 
    {
        this.catalogTreeName = catalogTreeName;
    }

    public String getCatalogTreeName() 
    {
        return catalogTreeName;
    }
    public void setCatalogTreeId(String catalogTreeId) 
    {
        this.catalogTreeId = catalogTreeId;
    }

    public String getCatalogTreeId() 
    {
        return catalogTreeId;
    }
    public void setCreateDt(Date createDt) 
    {
        this.createDt = createDt;
    }

    public Date getCreateDt() 
    {
        return createDt;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }
    public void setSequence(Long sequence) 
    {
        this.sequence = sequence;
    }

    public Long getSequence() 
    {
        return sequence;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("catalogId", getCatalogId())
            .append("catalogTreeName", getCatalogTreeName())
            .append("catalogTreeId", getCatalogTreeId())
            .append("createDt", getCreateDt())
            .append("name", getName())
            .append("content", getContent())
            .append("readCount", getReadCount())
            .append("sequence", getSequence())
            .toString();
    }
}
